package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Align;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.TextField;

public class AddNewCategoryField extends GroupControl{

	private TextField newCategoryField;
	
	public AddNewCategoryField(String bindID){
		//setTitle("header.AddNewCategory");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	
	private void createFields(){
		newCategoryField = new TextField ("newCategory", 20);
		}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addLabel("label.newCategoryName", Align.LEFT)
		.addRow()
		.addField(newCategoryField)
		;
	}
	
}

